<?php
namespace App\Api\Requests\Search;

use Illuminate\Validation\Rule;

use App\Api\Requests\BaseRequest;

class ContactRequest extends BaseRequest{
    public function authorize(){
        return true;
    }

    public function rules(){
        return [
            'search_id' => ['required'],
            'type' => ['required', Rule::in(['email', 'qq', 'winxin'])],
        ];
    }

    public function messages(){
        return [
            'search_id.required'=> '请上传搜索id',
            'type.required'=> '请上传联系方法类型',
            'type.in'=> '上传的联系方式类型不正确',
        ];
    }
}